import axios from "axios";

// 查询所有角色
export const findRoles = () => axios.get('/roles/findRoles')

// 添加角色
export const addRoles = (data) => axios.post('/roles/addRoles', data)

// 删除角色
export const deleteRoles = (data) => axios.post('/roles/deleteRoles', data)

// 根据编号查询角色
export const findRoleById = (data) => axios.post('/roles/findRoleById', data)

// 修改角色权限
export const addAuth = (data) => axios.post('/roles/addAuth', data)